﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="addbook.aspx.vb" Inherits="bookmeetprototype.addBook" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<head><title>Add Your Book To Our Library</title></head>
    <style type="text/css">
        .style1
        {
            width: 188px;
            height: 33px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <ul class="breadcrumb">
    <li><a id="A1" runat="server" href="~/Default.aspx">Home</a> <span class="divider">/</span></li>
    <li class="active">Add Book To Library</li>
    </ul>

If you feel that we&#39;ve forgotten a book that you love, please fill out this form 
    below to help us keep the site fresh and dynamic!<hr />
    <p><strong>Title:</strong><asp:TextBox ID="tb_booktitle" runat="server"></asp:TextBox>
    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
        ControlToValidate="tb_booktitle" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator></p>
    <p><strong>Author:</strong><asp:TextBox ID="tb_bookauthor" runat="server"></asp:TextBox>
    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
        ControlToValidate="tb_bookauthor" Display="Dynamic" ErrorMessage="*" 
        ForeColor="Red"></asp:RequiredFieldValidator></p>
    <p><strong>Publication Date:</strong><asp:TextBox ID="tb_bookpubyear" runat="server" ></asp:TextBox>    <asp:CompareValidator ID="CompareValidatorTextBox1" runat="server"
    ControlToValidate="tb_bookpubyear"
    Type="Date"
    Operator="DataTypeCheck" 
    ErrorMessage="Date must be in the DD/MM/YYYY format)" ForeColor="Red"
    /></p>
    <p><strong>Number of Pages:</strong><asp:TextBox ID="tb_bookpages" runat="server"></asp:TextBox>
    <asp:RangeValidator ID="RangeValidator1" runat="server" 
        ControlToValidate="tb_bookpages" 
        ErrorMessage="Please enter a number." ForeColor="Red" 
        MaximumValue="9999999" MinimumValue="1" SetFocusOnError="True" 
        Display="Dynamic"></asp:RangeValidator></p>


    <p><strong>Publisher:</strong><asp:TextBox ID="tb_publisher" runat="server"></asp:TextBox>
    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
        ControlToValidate="tb_publisher" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
         <p><strong>Blurb:</strong>
    <asp:TextBox ID="tb_blurb" runat="server" Height="93px" Width="451px"></asp:TextBox>
    </p>
    <p><asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
        ControlToValidate="tb_blurb" 
        ErrorMessage="You must include a short description of the book!" 
        ForeColor="Red"></asp:RequiredFieldValidator></p>
    <p><strong>Book Cover (<em>Optional</em>):</strong>
    <asp:FileUpload ID="fu_picture" runat="server" />
    &nbsp;</p>
    <p><strong>Your Rating:</strong>
       
        <asp:RadioButtonList ID="rbl_Stars" runat="server" 
        RepeatDirection="Horizontal" Width="142px">
        <asp:ListItem>1</asp:ListItem>
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem>3</asp:ListItem>
        <asp:ListItem>4</asp:ListItem>
        <asp:ListItem>5</asp:ListItem>
    </asp:RadioButtonList>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="rbl_Stars" ErrorMessage="Please select a value" 
            ForeColor="Red"></asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Button ID="btn_submission" runat="server" Text="Upload Book!" />
    </p>

</asp:Content><asp:Content ID="Content3" ContentPlaceHolderID="SidebarContent" runat="server">

    <p>
        <img alt="" class="style1" src="img/logo.png" /><hr />
        All fields are required, except for the Book Cover field, which is optional 
        (although we would be much obliged if you took the time to upload the book&#39;s 
        cover as our website will look pretty dull otherwise!)<hr />
        <p><strong>Images must be in .png, .jpg or .gif format</strong></p><hr />

</asp:Content>
